<template>
  <div>
    <set-title  :left-show="showFalse" name="标题文字" ></set-title>
    <set-title left-type="string" :left-show='showTrue' left-color="#fff" :left-method="leftMethod" name="大标题1"  :right-show="showTrue" :right-method="rightMethod" right-color="#fff" right-name="确定" right-type="string"></set-title>
    <set-title left-type="string" :left-show='showTrue' left-color="#fff" :left-method="leftMethod" name="大标题2" :right-two-method="rightTwoMethod" :canChoose="showTrue" right-two-type="string" right-two-name="搜" :right-show="showTrue" :right-method="rightMethod" right-color="#fff" right-name="确定" right-type="string"></set-title>
    <set-title left-type="string" :left-show='showTrue' left-color="#fff" :left-method="leftMethod" name="大标题3" title-type="tab"  :right-show="showTrue" :right-method="rightMethod" right-color="#fff" right-name="确定" right-type="string"></set-title>
  </div>
</template>
<script>
  import setTitle from '@/components/Title';

  export default{
    components:{
      'set-title':setTitle
    },
    data(){
      return {
        showTrue:true,
        showFalse:false
      }
    },
    methods:{
      rightMethod(){
          alert('rightMethod');
      },
      leftMethod(){
          alert('leftMethod');
      },
      rightTwoMethod(){
          alert('rightTwoMethod');
      }
    }
  }
</script>
